// 去内存中中 libkeyinfo.so  getByteHash
var addr = Module.findExportByName("libkeyinfo.so", "getByteHash");
console.log(addr); //0xb696387d


Interceptor.attach(addr,{
    onEnter:function (args){
        this.x1 = args[2];
    },
    onLeave:function(retval) {
        console.log("--------------------")
        console.log(Memory.readCString(this.x1));
        console.log(Memory.readCString(retval));
    }

})

// frida -U -f com.achievo.vipshop -l 1_hook_getByteHash.js    重启app+hook（出问题）
// frida -H 127.0.0.1:8877 -l  1_hook_getByteHash.js -f com.achievo.vipshop
// frida -UF -l 1_hook_getByteHash.js                          手动启动+hook